<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/taglib/jstl.jsp" %>

<c:set var="styleRevise" value="" />
<c:if test="${not empty address}">
	<c:set var="styleRevise" value="style='background-color:#E3E3E3;' readonly='readonly'" />
</c:if>
<div style="margin:2px 2px 2px 2px;">
	<form id="frmSendEmail" enctype="multipart/form-data">
		<table class="left-table">
		<tr>
			<td class="usrInfoTitleTd">(To:) 이름</td>
			<td class="usrInfoContsTd"><input type="text" value="${usrNm}" ${styleRevise} /></td>
		</tr>
		<tr>
			<td class="usrInfoTitleTd">(To:) Email</td>
			<td class="usrInfoContsTd"><input type="text" id="to" name="to" value="${address}" ${styleRevise} /></td>
		</tr>
		<tr>
			<td class="usrInfoTitleTd">File</td>
			<td class="usrInfoContsTd"><input type="file" name="file" /></td>
		</tr>
		<tr>
			<td class="usrInfoTitleTd">Title</td>
			<td class="usrInfoContsTd"><input type="text" id="subject" name="subject" /></td>
		</tr>
		<tr>
			<td class="usrInfoTitleTd" style="height:86px;">Content</td>
			<td class="usrInfoContsTd">
				<textarea id="content" name="content" style="width:95%; height:80px; resize:none;"></textarea>
			</td>
		</tr>
		</table>
	</form>
</div>
<div class="usrInfoBtnsDiv">
	<input type="button" id="jqwFormSendEmailBtn" value="보내기" />
	<input type="button" id="jqwCloseBtn" value="닫기" />
</div>

<script type="text/javascript" src="/resources/js/views/template/system/userInfo/_sendMailForm.js"></script>
<script type="text/javascript" src="/resources/js/views/template/system/userInfo/_sendMailFormValid.js"></script>